package models

import "gorm.io/gorm"

type Comments struct {
	gorm.Model
	ArticleID  int64  `gorm:"column:article_id;type:int" json:"article_id"`
	Content    string `gorm:"column:content;type:text;" json:"content"`
	AuthorName string `gorm:"column:author_name;type:varchar(50);" json:"author_name"`
}

func (table *Comments) TableName() string {
	return "comments"
}
